Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Owner
Author
|
Superseded by lidge-jun#9066 at e436084. I compared the shared Gemini send path and routing tests with b97ac4a. The upstream PR covers these routes for buffered and streaming requests, including the next send after an OAuth refresh. I found no separate change to carry from this branch. The upstream PR is still open and tracks the fix through review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native Gemini now enforces Google Antigravity provider egress before transmitting OAuth credentials or prompt bodies.
noProxyroutes setproxy: false, preventing inheritance of an excluded global proxy.Static Verification Checks
Native egress enforcement (Passed) — src/server/gemini-native.ts resolves provider egress before every deadline-wrapped send, closing the OAuth credential and prompt disclosure path.
Routing variants preserved (Passed) — resolveProviderEgress and configuredOutboundFetch preserve direct, noProxy, HTTP(S), SOCKS, and inherited routing behavior.
Malformed routes fail closed (Passed) — src/lib/provider-egress.ts rejects malformed egress instead of inheriting global routing, preventing fail-open credential dispatch.
Native regression assertions (Passed) — tests/server/gemini-native.test.ts asserts direct, matching noProxy, and explicit proxy options reach the native transport.
Existing behavior preserved (Passed) — tests/server/gemini-native.test.ts asserts manual redirects, preserved JSON, OAuth refresh, cancellation, and successful buffered responses remain supported.
Finding:
acf_df3c32b9fdf42177d7f805007566036ePatch:
arp_243dcb2c25e181621e68e72b0eecbe1dBase commit:
8ef15263e6a4318adc15db83dd054adde07d0ee0Patch SHA-256:
c88f7416da7a04ea7fc447c9a3bdf0ff6f99d821d7c0ba80953e70f4128e344f